package com.example.admin.sizeyunsuan;

import java.util.Random;

/**
 * Created by admin on 2017/9/14.
 */

class Num {
    private int max = 100;
    private int min = 1;

    public int getMin() {
        return min;
    }

    public void setMin(int min) {
        this.min = min;
    }

    public int getMax() {
        return max;
    }

    public void setMax(int max) {
        this.max = max;
    }
    public int shu(){
        Random random = new Random();
        int s = random.nextInt(max)%(max-min+1) + min;
        return s;
    }
    public int fu(){
        Random random = new Random();
        int s = random.nextInt(4)%(4-1+1) + 1;
        return s;
    }
}
